import request from '@/utils/request'

export function orgFileslist(query) {
  return request({
    url: '/user/orgFilesApply/orgFilesList',
    method: 'get',
    params: query
  })
}

export function loglist(applyId) {
  return request({
    url: '/user/orgFilesApply/log/' + applyId,
    method: 'get'
  })
}

export function userApplyFilesList(query) {
  return request({
    url: '/user/orgFilesApply/userList',
    method: 'get',
    params: query
  })
}

export function getApplyInfo(applyId) {
  return request({
    url: '/user/orgFilesApply/applyInfo/' + applyId,
    method: 'get'
  })
}

// 查询材料申请记录列表
export function listFilesApply(query) {
  return request({
    url: '/user/orgFilesApply/list',
    method: 'get',
    params: query
  })
}

// 查询材料申请记录详细
export function getFilesApply(applyId) {
  return request({
    url: '/user/orgFilesApply/' + applyId,
    method: 'get'
  })
}

export function saveFilesApply(data) {
  return request({
    url: '/user/orgFilesApply/save',
    method: 'post',
    data: data
  })
}

// 新增材料申请记录
export function addFilesApply(data) {
  return request({
    url: '/user/orgFilesApply',
    method: 'post',
    data: data
  })
}

// 修改材料申请记录
export function updateFilesApply(data) {
  return request({
    url: '/user/orgFilesApply',
    method: 'put',
    data: data
  })
}

